/*
*
* */
Rsd.define('Rsd.Faith.pages.BizZiJinShiYongGongShiListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: ['Rsd.Faith.controls.XiaoQuInput', 'Rsd.Faith.controls.SuoShuQiInput'],
    xtype: 'list-gongshi',
    border: false,
    tabTitle: '资金使用公示',
    formTitle: '资金使用公示',
    modelType: 'UsingZiJinShiYongShenQingBiaoModel',
    titleField:'ShenQingDanHao',
    sort:[{name:'ShenQingRiQi',direction:'desc'}],
    where:[{name:'ZhuangTai',op:'equals',value:'HB'}],
    searchColumns:[
        {name:'SuoShuQi',text:'所属期',xtype:'ctrl-suoshuqi'},
        {name:'ShenQingDanHao',text:'申请单号'}
        ],
    formFields: [
        {
            "name": "ShenQingDanHao",
            "label": {
                "text": "申请单号",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShenQingDanWei",
            "label": {
                "text": "申请单位",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShenQingDanWeiFaRenDaiBiao",
            "label": {
                "text": "申请单位法人代表",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShenQingShiXiang",
            "label": {
                "text": "申请事项",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShenQingJinE",
            "label": {
                "text": "申请金额",
                "width": 120
            },
            "xtype": "number",
            "precision": 2
        },
        {
            "name": "ShenQingRiQi",
            "label": {
                "text": "申请日期",
                "width": 120
            },
            "xtype": "date",
            "formatString": "yyyy-MM-dd"
        },
        {
            "name": "XiaoQuBianHao",
            "label": {
                "text": "小区编号",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "LouDongHao",
            "label": {
                "text": "楼栋号",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "WeiXiuFanWei",
            "label": {
                "text": "维修范围",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShenQingJinEDaXie",
            "label": {
                "text": "申请金额大写",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShouKuanYinHang",
            "label": {
                "text": "收款银行",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ShouKuanYinHangZhangHao",
            "label": {
                "text": "收款银行账号",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "BoFuFangShi",
            "label": {
                "text": "拨付方式",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "ZhuangTai",
            "label": {
                "text": "划拨状态",
                "width": 120
            },
            "xtype": "text"
        },
        {
            "name": "BoFuHouZhuanHuYuE",
            "label": {
                "text": "拨付后余额",
                "width": 120
            },
            "xtype": "number",
            "precision": 2
        },
        {
            "name": "Remark",
            "label": {
                "text": "备注",
                "width": 120
            },
            "xtype": "text"
        }
    ],
    gridColumns: [
        {
            "text": "序号",
            "xtype": "index",
            "width": 40
        },
        {
            "name": "ShenQingDanHao",
            "text": "申请单号",
            "sortable": true,
            "width": 150,
            "nobr": true,
            sortable:true
        },
        {
            "name": "SuoShuQi",
            "dataIndex": "SuoShuQi",
            "sortable": false,
            "text": "所属期",
            align:'center',
            "index": 20,
            "exist": true,
            "xtype": "string",
            "width": 80,
            "nobr": true
        },
        {
            "name": "ShenQingDanWei",
            "text": "申请单位",
            "sortable": false,
            "width": 200,
            "nobr": true
        },
        {
            "name": "ShenQingDanWeiFaRenDaiBiao",
            "text": "法人代表",
            "sortable": false,
            "width": 100,
            "nobr": true
        },

        {
            "name": "ShenQingShiXiang",
            "text": "申请事项",
            "sortable": false,
            "width": 250,
            "nobr": true
        },
        {
            "name": "ShenQingJinE",
            "text": "申请金额",
            "sortable": true,
            "xtype": "number",
            "width": 100,
            "precision": 2
        },
        {
            "name": "ShenQingRiQi",
            "text": "申请日期",
            "sortable": true,
            "xtype": "date",
            "formatString": "yyyy-MM-dd",
            "width": 100
        },
        {
            "name": "ZhuangTai",
            "text": "状态",
            align:'center',
            "sortable": false,
            "xtype": "enum",
            "enum": {
                "name": "Rsd.Faith.Core.ZiJinShenQinZhuangTai",
                "valueMember": "code",
                "items": [
                    {
                        "code": "DJ",
                        "value": 0,
                        "text": "待审核"
                    },
                    {
                        "code": "TG",
                        "value": 1,
                        "text": "通过"
                    },
                    {
                        "code": "JJ",
                        "value": 2,
                        "text": "不通过"
                    },
                    {
                        "code": "HB",
                        "value": 3,
                        "text": "已划拨"
                    }
                ]
            },
            "width": 70,
            "nobr": true
        },
        {
            "name": "XiaoQuBianHao",
            "text": "小区",
            "xtype": 'ctrl-xiaoqu',
            "sortable": true,
            "width": 80,
            "nobr": true
        },
        {
            "name": "LouDongHao",
            "text": "楼栋号",
            "sortable": false,
            align:'center',
            "width": 50,
            "nobr": true
        },
        {
            "name": "WeiXiuFanWei",
            "text": "维修范围",
            "sortable": false,
            "width": 150,
            "nobr": true
        },
        {
            "name": "ShenQingJinEDaXie",
            "text": "申请金额大写",
            "sortable": true,
            "width": 150,
            "nobr": true
        },
        {
            "name": "ShouKuanYinHang",
            "text": "收款银行",
            "sortable": false,
            "width": 150,
            "nobr": true
        },
        {
            "name": "ShouKuanYinHangZhangHao",
            "text": "收款银行账号",
            "sortable": false,
            "width": 150,
            "nobr": true
        },

        {
            "name": "Remark",
            "text": "备注",
            "sortable": false,
            "width": 150,
            "nobr": true
        }
    ],
    templateCols: [
        {
            name: 'space',
            text: '',
            xtype: 'template',
            width: 5,
            hideable: false,
            sortable: false
        }
    ],
    /*
    * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    }
});
